﻿namespace Sample.JQuery {
	using System;
	using System.Web.UI;
	using NJQuery.JGrowlExtension;

	public partial class JGrowlPage : Page {

		protected override void OnLoad(EventArgs e) {
			base.OnLoad(e);

			if(Message1Check.Checked)
				JGrowl.Alert("This is message 1.  I am pretty simple.");

			if(Message2Check.Checked)
				JGrowl.Alert("This is message 2.  I have a header!", "Information");

			if(Message3Check.Checked)
				JGrowl.Alert("This is message 3.  I am a sticky little devil.", true);

			if(Message4Check.Checked) {
				JGrowlOptions options = new JGrowlOptions();
				options.Life = JGrowl.Life * 2;
				JGrowl.Alert("This is message 4.  It uses the advanced options to hang around twice as long.", options);
			}

		}

	}

}